<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.fa{
				display: inline-block;
				/* position: relative;
				 */
			}
			
			.fa:hover .cd{
				display: inline-block;
			}
			
			.fa .cd{
				position: absolute;
				top: 40px;
				left: 0px;
				display: none;
				width: 100vw;
				height: 100px;
				background-color: pink;
			}
			
			.code{
				position: fixed;
				right: 0px;
				bottom: 50px;
				width: 50px;
				height: 50px;
			}
			
			.code .info{
				position: relative;
				left: -50px;
				top: -50px;
				display: none;
				height: 50px;
				width: 50px;
				border: 1px solid #000000;
			}
			
			.code:hover .info{
				display: inline-block;
			}
		</style>
	</head>
	<body>
		 <!-- 相对定位和绝对定位 -->
		<div class="fa">
			<em>小米手机</em>
			<div class="cd">
				下拉框1
			</div>
		</div>
		<div class="fa">
			<em>红米手机</em>
			<div class="cd">
				下拉框2
			</div>
		</div>
		<div>
			主体内容
		</div>
		
		<!-- 相对定位 -->
		<div class="code">
			<img src="../src/二维码.png"/>
			<div class="info">
				
			</div>
		</div>
	</body>
</html>
